package com.example.zhonghe;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class SencondActivity extends AppCompatActivity {
private TextView msg1;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sencond);
        msg1=(TextView)findViewById(R.id.text3);
        Intent intent=getIntent();
            msg1.setText("欢迎"+intent.getStringExtra("msg1")+"同学进入");
    }
}
